Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ekf2: send airspeed data to ekf backend regardless of sign #23540

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

bresch
Copy link
Member

@bresch bresch commented Aug 13, 2024

Solved Problem

On ground the airspeed can sometimes be slightly negative. If no airspeed data is sent to the backend, it cannot know that wind dead-reckoning will be possible post-takeoff and the inertial dead-reckoning is set.

See:

if (!_control_status.flags.in_air && _control_status.flags.fixed_wing
&& (_params.beta_fusion_enabled == 1)
&& (_params.arsp_thr > 0.f) && isRecent(_aid_src_airspeed.timestamp_sample, _params.no_aid_timeout_max)
) {
// currently landed, but air data aiding should be possible once in air
aiding_expected_in_air = true;
}

Solution

Send airspeed data to ekf2 backend as long as finite but ignore sign.

@bresch bresch added the EKF2 label Aug 13, 2024
@bresch bresch requested a review from sfuhrer August 13, 2024 12:40
@bresch bresch self-assigned this Aug 13, 2024
On ground the airspeed can sometimes be slightly negative but the ekf
should still know that airspeed data is flowing regularly
@sfuhrer sfuhrer merged commit aad607e into main Aug 13, 2024
95 checks passed
@sfuhrer sfuhrer deleted the pr-ekf2-airspeed-neg branch August 13, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants